package com.hellobike.haxing.modules.shop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.hellobike.haxing.modules.shop.entity.ShopAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * @Description: 提货点账单
 * @Author: haxing-boot
 * @Date:   2020-02-08
 * @Version: V1.0
 */
public interface ShopAccountMapper extends BaseMapper<ShopAccount> {
    /**
     * 修改子状态
     * @param applyId
     * @param subStatus
     */
    @Update("update t_shop_account set sub_status=#{subStatus},update_time=now() where apply_id=#{applyId}")
    void updateSubStatus(@Param("applyId") Long applyId,@Param("subStatus") Integer subStatus);
}
